<template>
	<view class="search">
		<!-- <u-search focus margin="20rpx 50rpx" clearable @search="searchKey()" @custom="searchKey()"></u-search> -->
		<zy-search :is-focus="false" :theme="themeClass" :show-want="true" 
			:hot-list="hotList" @getSearchText="getSearchText"></zy-search>
	</view>
</template>

<script>
	import zySearch from '../../components/zy-search/zy-search.vue'
	export default {
		components: {
			zySearch
		},
		data() {
			return {
				themeClass: 'block',
				hotList: ['美食', '广州', '深圳', 'uniapp'] //初始化推荐列表
			}

		},
		methods: {
			searchKey() {
				//console.log("wokaishisousuo");
			},
			getSearchText(e) {
				uni.showToast({
					title:'搜索信息: ' + e,
					icon:"none"
				})
			}
		}
	}
</script>

<style>
</style>
